<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    span::before{
      content: "《";
    }
    span::after{
      content: "》";
    }
  </style>
</head>

<body>
  <div>
    <p>
      我喜欢一本名叫<span>java编程基础</span>的书
    </p>
  </div>
</body>

</html>